package scheduler;

public class IdentifierPair extends TextValuePair{
	int	PairNo;	// valid values 0 to 4 

	public void loadPair(int pairNo, String userId) {
		// This function will retrieve the parameter from the database
		
		this.PairNo = pairNo;
		switch (pairNo) {
		case 0:
			this.setText("UserName");
			this.setValue(userId);
			break;
		case 1:
			this.setText("AccountNumber");
			this.setValue("3000857854");
			break;
		case 2:
			this.setText(null);
			this.setValue(null);
			break;
		case 3:
			this.setText(null);
			this.setValue(null);
			break;
		case 4:
			this.setText(null);
			this.setValue(null);
			break;
		}
	}

	public void print() {
		System.out.println("\t\tidentifier  Pair[" + this.PairNo + "] textName [" + this.text + "] Value [" + this.value + "]");
	}

}
